package com.ruoyi.project.er.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.aspectj.lang.annotation.Excels;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 风险点定义对象 paea_er_point
 *
 * @author ruoyi
 * @date 2020-03-13
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName(value = "paea_er_point")

public class PaeaErPoint  implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;



    /** 差错点代码 */
    @Excel(name = "差错点代码")
    private String code;

    /** 差错点名称 */
    @Excel(name = "差错点名称")
    private String name;

    /** 差错点描述 */
    @Excel(name = "差错点描述")
    private String description;

    /** 使用状态（0-正常；1-停用） */
    @Excel(name = "使用状态", readConverterExp = "0=-正常；1-停用")
    private Long status;

    /** 差错点分类代码 */
    @Excel(name = "差错点分类代码")
    private String busyCode;

    /** 差错点分类名称 */
    @Excel(name = "差错点分类名称")
    private String busyName;

    /** 风险等级 */
    @Excel(name = "风险等级")
    private String gradeId;

    /** 级别 */
    private Integer grade;

    /** 期限 */
    private Integer limitDay;


    /** 流程环节(scan-扫描；input-补录；forceInput-强补；other-其他) */
    @Excel(name = "流程环节(scan-扫描；input-补录；forceInput-强补；other-其他)")
    private String processNode;
    /** 差错类型ID */
    @Excel(name = "差错类型ID")
    @TableField(exist = false)
    private String errTypeId;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("errorTypeId", getErrTypeId())
            .append("code", getCode())
            .append("name", getName())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("busyCode", getBusyCode())
            .append("busyName", getBusyName())
            .append("gradeId", getGradeId())
            .append("grade", getGrade())
            .append("limitDay", getLimitDay())
            .append("processNode", getProcessNode())

            .toString();
    }
}
